home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0220.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.6 KB  |  73 lines

  1. Morten Bolstad digitized on 16-May-78 08:04:38:
  2.  MB> Hello!
  3.  
  4.  MB> I have a little coding problem that i think most of you are able
  5.  MB> to help me  out with quite easy.
  6.  
  7. Well, I never have used Procedures much, so this is just a guess...
  8.  
  9. Let's imagine 'a' is your 'Movement' procedure.
  10.  
  11.  MB> a
  12.  MB> Procedure a
  13.  MB> b
  14.      ^- delete this line
  15.         when 'a' exits it should jump back to 'b'
  16.  MB> endproc
  17.  
  18.  MB> procedure b
  19.  MB> a
  20.  MB> endproc
  21.  
  22. AFAIK, Procedures are little programs, all by themselves. They can't
  23. call subroutines that aren't contained within the Procedure, which is
  24. why I don't use them. I use all Subroutines. But I think a Procedure
  25. can call another Procedure.
  26.  
  27.  MB> The reason i want it to be like one of these exampels is that
  28.  MB> i'am gonna have
  29.  MB> 6 procedures and then it takes up to much space and memory to
  30.  MB> have the code  in movment 6 times, when i dont need to have it
  31.  MB> more than one time.
  32.  
  33. Then you can have:
  34.  
  35.    Procedure c
  36.    Paste Bob, b,x,y
  37.    a
  38.    Endproc
  39.  
  40.    Procedure d
  41.    Locate x,y:Print
  42.    a
  43.    Endproc
  44.  
  45.    Procedure e
  46.    Do Something Else
  47.    a
  48.    Endproc
  49.  
  50. etc...
  51.  
  52.  
  53.  MB> Oki, please help me with this prob!!!
  54.  
  55. Hope this helps :)
  56.  
  57.  MB> Morten Bolstad.
  58.  
  59.  
  60. Greets,
  61.  - Rand
  62. -- 
  63.   ______                                ________________________ ////
  64.  |   _   \  _____   ___   __ _____      mailto:rand@netwave.net ////
  65.  |  [_}   )(___  \ (   \ |  (  _  \ http://www.netwave.net/members/rand
  66.  |   _   (  / __  \ |   \|  | |_}  )                          ////
  67.  |__| \___)(_______(__|\____(_____/                      \\\\////
  68.  
  69.  
  70. {{:-(*)  <-- Klingon eating a Tribble.
  71.  
  72.  
  73.